/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.mes.manager;

import java.util.Collection;
import java.util.List;

import com.xy.biz.mes.domain.bo.ManufactureOrderBO;
import com.xy.biz.mes.domain.bo.ManufactureOrderGoodsBO;
import com.xy.biz.mes.domain.query.ManufactureOrderQuery;

/**
 *
 *
 * @author zsp
 * @date 2022-1-6
 */
public interface ManufactureOrderManager {

    /**
     * 保存多个
     *
     * @param collection
     */
    int saveAllManufactureOrder(Collection<ManufactureOrderBO> collection);

    /**
     * 保存多个
     *
     * @param collection
     */
    int saveAllManufactureOrderGoods(Collection<ManufactureOrderGoodsBO> collection);

    /**
     * 更新
     *
     * @param manufactureOrderBO
     */
    int updateManufactureOrder(ManufactureOrderBO manufactureOrderBO);

    int updateAllManufactureOrder(Collection<ManufactureOrderBO> collection);

    int updateAllManufactureOrderGoods(Collection<ManufactureOrderGoodsBO> collection);

    /**
     * 删除
     *
     * @param manufactureOrderId
     */
    int deleteManufactureOrder(Long manufactureOrderId);

    int deleteManufactureOrderGoods(Collection<Long> manufactureOrderGoodsIdCollection);

    /**
     * 查找一个
     *
     * @param manufactureOrderId
     * @return
     */
    ManufactureOrderBO getManufactureOrder(Long manufactureOrderId);

    /**
     * 查找多个
     *
     * @param collection 标识集合
     */
    List<ManufactureOrderBO> listManufactureOrderById(Collection<Long> collection, boolean withGoods);

    List<ManufactureOrderGoodsBO> listManufactureOrderGoodsById(Collection<Long> collection);

    /**
     * 查找多个
     *
     * @param query 查找条件
     */
    List<ManufactureOrderBO> listManufactureOrder(ManufactureOrderQuery query);

    /**
     * 统计个数
     *
     * @param query 查找条件
     */
    int countManufactureOrder(ManufactureOrderQuery query);

}
